<?php
class Gallery
{
	public function construct()
	{
		
	}
	
	public function index()
	{
		CommonFunc::loadFile(SMARTYLIBS . "Smarty.class.php");
		CommonFunc::loadFile('model/Gallery.php');
                $galleryfolder=SITEURL."admin/templates/gallery";
		$smarty = new Smarty();
		$modGallery = new ModelGallery();		
		$gallery_arr = $modGallery->getGalleryImages();
		$smarty->assign("title", "Banner Management");
                $smarty->assign("galleryfolder", $galleryfolder);
		$smarty->assign("gallery_arr", $gallery_arr);
				
		$smarty->display('gallery/index.tpl');
	}
}	
?>